

function getExampleImage(imageId, pixelData) {
    const width = 512;
    const height = 512;

    function getPixelData() {
        return pixelData;
    }

    var image = {
        imageId: imageId,
        minPixelValue: 5,
        maxPixelValue: 1500,
        slope: 1.0,
        intercept: 50,
        windowCenter: 127,
        windowWidth: 256,
        getPixelData: getPixelData,
        rows: height,
        columns: width,
        height: height,
        width: width,
        color: false,
        columnPixelSpacing: .8984375,
        rowPixelSpacing: .8984375,
        sizeInBytes: width * height * 2
    };

    return {
        promise: new Promise((resolve) => {
            resolve(image);
        }),
        cancelFn: undefined
    };
}

export { getExampleImage }
